﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="dlg_pieces.aspx.cs" Inherits="fckeditor_editor_dialog_dlg_pieces" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>插入碎片</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <meta content="noindex, nofollow" name="robots" /> 
    <script src="common/fck_dialog_common.js" type="text/javascript"></script> 
<script type="text/javascript"> 
 
 var oEditor = window.parent.InnerDialogLoaded() ; 
 
 window.onload = function() 
{ 
 window.parent.SetOkButton( true ) ; 
 window.parent.SetAutoSize( true ) ; 
} 
 
 function Ok() 
{ 
 var oActiveEl = oEditor.FCK.EditorDocument.createElement( 'SPAN' ) ; 
 oActiveEl.innerHTML = GetE('txtName').value ; 
 oEditor.FCKUndo.SaveUndoStep() ; 
 oActiveEl = oEditor.FCK.InsertElement( oActiveEl ) ; 
 
 return true ; 
 } 
 </script> 
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table align=center>
    <tr>
    <td>碎片内容：</td>
    </tr>
    <tr>
    <td>
        <asp:TextBox ID="txtName" runat="server" Height="250px" TextMode="MultiLine"  Width="335px"></asp:TextBox>
    </td>
    </tr>
    </table>
    </div>
    </form>
</body>
</html>
